package com.example.admin_api;

import com.example.admin_model.dto.EmployeeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: sjz
 * @since: 2024/7/3 19:56
 */
@FeignClient(
        name = "take-out-admin",
        contextId = "take-out-admin"
)
@Component
public interface EmployeeClient {

    @PostMapping("/employeeApi/validate")
    String validate(@RequestBody EmployeeDTO employeeDTO);
}
